package tg.game.lottery.crawler;

import java.util.List;
import java.util.Map;

/**
 * 爬虫 结果解析
 * @author NKW
 * 解析出  游戏id,期数，开奖内容，开奖时间  四个字段
 * 
 * 格式解析
 * 不同的游戏id对应解析
 * 各家游戏开奖内容统一转换成本地开奖内容
 *    
 */
public interface LotteryParser {
	public static String GID_BJPK10 = "BJ_PK10";//北京PK10
	public static String GID_CQSSC = "CQ_SSC";//重庆时时彩
	public static String GID_CQKLSF = "CQ_KLSF";//重庆快乐十分
	public static String GID_GDKLSF = "GD_KLSF";//广东快乐十分
	public static String GID_TJKLSF = "TJ_KLSF";//天津快乐十分
	public static String GID_GXKLSF = "GX_KLSF";//广西快乐十分
	public static String GID_SHSSL = "SH_SSL";//上海时时乐，福彩时时乐
	public static String GID_TJSSC = "TJ_SSC";//天津时时彩
	public static String GID_BJKL8 = "BJ_KL8";//北京快乐8
	public static String GID_JSK3 = "JS_K3";//江苏快3，江苏骰宝
	public static String GID_GD11X5 = "GD_11X5";//广东11选5
	public static String GID_JX11X5 = "JX_11X5";//江西11选5
	public static String GID_SD11X5 = "SD_11X5";//山东11选5
	public static String GID_MLAFT = "MLA_FT";//马耳他飞艇，幸运飞艇
	public static String GID_FC3D = "FC3D";//福彩3d
	public static String GID_PL3 = "PL3";//体彩p3,排列3
	public static String GID_JNDKENO = "JNDKENO";//加拿大keno,转成加拿大pc蛋蛋


	public static String KEY_GID = "gid";//游戏id
	public static String KEY_ROUND_ID = "round_id";//场次期数id
	public static String KEY_LOTTERY_CONTENT = "lottery_content";//开奖内容
	public static String KEY_OPEN_TIME = "open_time";//开奖时间
	/**
	 * 根据抓到的网页内容来解析开奖
	 * @param webContent
	 * @return  返回list中的map规定四个字段：  gid,  round_id,  lottery , open_time  四个内容  ，可以多行
	 */
	public List<Map<String, String>> parseLottery(String webContent);
}
